package com.example.lightble;

public class CmdConstants {

	public static final byte CMDHEAD1=(byte) 0x7F; //---
	public static final byte CMDHEAD2=(byte) 0x5A; //---
	public static final byte CMDVERSION=0X01;
	public static final byte CMD_APP_BYTE=0x04;  //应用类别(0x04表示江苏军光机电2组RGB灯)
	
	public static final byte CMD_WORD_T='T';  //设置绑定的密码, 来连接完成.
	public static final byte CMD_WORD_V='V';  //写入AB组RGB的PWM
		
	public static final byte CMD_WORD_S='S';  //渐变颜色
	public static final byte CMD_WORD_F='F';  //跳变颜色
	public static final byte CMD_WORD_N='N';  //更改蓝牙设备
	public static final byte CMD_WORD_P='P';  //更该连接密码
	public static final byte CMD_WORD_C='C';  //设置多个颜色值.
	public static final byte CMD_WORD_D='D';  //恢复出厂设置
	public static final byte CMD_WORD_O='O';  //开关灯按键.
	public static final byte CMD_WORD_W='W';  //一键白光设置.
	public static final byte CMD_WORD_A='A';  //渐变跳变同步命令.
	

	public static final byte CMD_WORD_RET_E='E';  //接收数据错误
	public static final byte CMD_WORD_RET_G='G';  //接收数据成功
	public static final byte CMD_WORD_RET_U='U';  //未定义的命令

	public static final byte CMD_WORD_RET_01=0x01;  //反馈状态1
	
	public static final int CMD_S_LENGTH=0;  //存储当前状
	public static final int CMD_N_LENGTH=12;  //更改蓝牙设备
	public static final int CMD_P_LENGTH=6;  //更该连接密码
	public static final int CMD_D_LENGTH=0;  //恢复出厂设置
	public static final int CMD_V_LENGTH=6;  //颜色值的长度.

	public static final int KEY=0;  //调试模式   //范围为1-255   ---0为调试状态
	
}
